@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

// 卡片内标签页样式
.ant-card-head {
  .ant-tabs {
    border-bottom: 1px solid #f0f0f0;

    .ant-tabs-nav {
      margin: 0;

      &:before {
        border: none;
      }
    }
  }
}

// 统计信息样式
.infoList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  .infoItem {
    padding: 0 80px;
    text-align: center;
    position: relative;
    margin-bottom: 20px;

    &:not(:last-child):after {
      position: absolute;
      right: 1px;
      top: 0;
      content: '';
      width: 1px;
      height: 100%;
      background-color: #e9e9e9;
    }
  }

  .infoName {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5)
  }

  .infoValue {
    font-size: 24px;
    color: rgba(0, 0, 0, 0.8)
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active),
(-ms-high-contrast: none) {
  body .ant-design-pro>.ant-layout {
    min-height: 100vh;
  }
}
